import BasicLayout from '@/layouts/basic-layout/index.vue';

const meta = {
  auth: true,
};

const pre = 'baseData-';

export default {
  path: '/baseData',
  name: 'baseData',
  redirect: {
    name: `${pre}testStandard`,
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'testStandard',
      name: `${pre}testStandard`,
      meta: {
        ...meta,
        title: '检测标准',
        auth: ['/baseData/testStandard'],
      },
      component: () => import('@/pages/baseData/testStandard/index.vue'),
    },
    {
      path: 'projectName',
      name: `${pre}projectName`,
      meta: {
        ...meta,
        title: '项目名称',
        auth: ['/baseData/projectName'],
      },
      component: () => import('@/pages/baseData/projectName/index'),
    },
    {
      path: 'testProject',
      name: `${pre}testProject`,
      meta: {
        ...meta,
        title: '检测项目',
        auth: ['/baseData/testProject'],
      },
      component: () => import('@/pages/baseData/testProject/index'),
    },
    {
      path: 'testPower',
      name: `${pre}testPower`,
      meta: {
        ...meta,
        title: '部门检测能力',
        auth: ['/baseData/testPower'],
      },
      component: () => import('@/pages/baseData/testPower/index.vue'),
    },
  ],
};
